/* =============================================
   PATENTES – MODAL E SVGs COLORIDOS
   ============================================= */

/* SVGs coloridos – herdam a cor do elemento pai */
.brasao-frente-grande svg,
.insignia-capitulo-grande svg {
    color: currentColor; /* herda a cor do pai */
}

.brasao-frente-grande {
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    vertical-align: middle;
    line-height: 0;
}
.brasao-frente-grande svg {
    width: 60px;  /* 🔥 maior ainda */
    height: 60px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}
.brasao-frente-grande:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.insignia-capitulo-grande {
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    vertical-align: middle;
    line-height: 0;
}
.insignia-capitulo-grande svg {
    width: 48px;  /* 🔥 maior */
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.3));
}
.insignia-capitulo-grande:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.5));
}

/* ========== MODAL ========== */
#modal-detalhes-patente {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
#modal-detalhes-patente > div {
    background: #0d0d1a;
    border: 2px solid #00ffcc;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    box-shadow: 0 0 60px rgba(0, 255, 204, 0.2);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-patente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 10px;
}
.modal-patente-tipo {
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
}
.modal-patente-fechar {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.modal-patente-fechar:hover {
    transform: rotate(90deg);
    color: #ff6666;
}

.modal-patente-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.modal-patente-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 30px currentColor);
    transition: 0.3s;
}
.modal-patente-svg svg {
    width: 100%;
    height: 100%;
}
.modal-patente-info {
    text-align: center;
    color: #ccc;
    font-family: 'Courier New', monospace;
}
.modal-patente-info h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}
.modal-patente-patente {
    font-size: 20px;
    font-weight: bold;
    margin: 8px 0;
}
.modal-patente-frase {
    font-size: 16px;
    color: #888;
    font-style: italic;
    margin: 8px 0;
}
.modal-patente-data {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    border-top: 1px solid #1a1a2e;
    padding-top: 12px;
}

/* Badges da tabela – sem alterações */
.patente-badge-frente {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 6px 12px 6px 12px;
    background: #0d0d1a;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 15px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.patente-badge-frente.recruta { border-color: #555; background: #0a0a12; color: #888; }
.patente-badge-frente.operador { border-color: #00cc99; background: #0a1a14; color: #00cc99; }
.patente-badge-frente.veterano { border-color: #c0c0c0; background: #1a1a1a; color: #c0c0c0; }
.patente-badge-frente.comandante { border-color: #ffd700; background: #1a1400; color: #ffd700; box-shadow: 0 0 20px rgba(255,215,0,0.2); }

.patente-badge-capitulo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    background: #0d0d1a;
    border: 1px solid #333;
    font-size: 12px;
    color: #aaa;
    font-family: 'Courier New', monospace;
}
.patente-badge-capitulo.recruta { border-color: #444; color: #666; }
.patente-badge-capitulo.operador { border-color: #00cc99; color: #00cc99; }
.patente-badge-capitulo.veterano { border-color: #c0c0c0; color: #c0c0c0; }
.patente-badge-capitulo.comandante { border-color: #ffd700; color: #ffd700; }

/* Linhas – sem alterações */
.tabela-patentes td {
    padding: 14px 18px;
    border-bottom: 1px solid #1a1a2e;
}
.linha-frente td {
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(0, 255, 204, 0.03);
    border-left: 3px solid transparent;
}
.linha-frente.linha-comandante td {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}
.linha-capitulo td {
    padding-top: 10px;
    padding-bottom: 10px;
}
.frente-nome { font-size: 18px; color: #fff; letter-spacing: 1px; }
.linha-comandante .frente-nome { color: #ffd700; }
.capitulo-nome { font-size: 15px; color: #ccc; }
.comandante-row .capitulo-nome { color: #ffd700; }
.materia-tag { background: #1a1a2e; color: #666; padding: 2px 12px; border-radius: 12px; font-size: 11px; text-transform: uppercase; border: 1px solid #2a2a4e; }

/* Progresso – sem alterações */
.progress-info { display: flex; align-items: center; gap: 12px; }
.progress-percent { min-width: 45px; color: #00ffcc; font-weight: bold; font-size: 15px; }
.progress-container { flex: 1; height: 8px; background: #0d0d1a; border-radius: 4px; overflow: hidden; border: 1px solid #1a1a2e; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #00cc88, #00ffcc); transition: width 0.5s; }
.progress-percent-small { font-size: 13px; color: #00cc99; min-width: 40px; }
.progress-container-small { flex: 1; height: 6px; background: #0d0d1a; border-radius: 3px; overflow: hidden; border: 1px solid #1a1a2e; }
.progress-bar-small { height: 100%; background: linear-gradient(90deg, #00cc88, #00ffcc); transition: width 0.5s; }
.modulos-count { font-size: 12px; color: #555; }
.frase-status { font-size: 13px; color: #888; font-style: italic; }

.expand-icon { color: #00ffcc; font-size: 14px; }
.subfrentes.hidden { display: none; }

/* Responsivo */
@media (max-width: 768px) {
    .brasao-frente-grande svg { width: 40px; height: 40px; }
    .insignia-capitulo-grande svg { width: 32px; height: 32px; }
    .modal-patente-svg { width: 120px; height: 120px; }
    .frente-nome { font-size: 15px; }
    .capitulo-nome { font-size: 13px; }
    .patente-badge-frente { font-size: 12px; padding: 4px 12px; }
}